<?php

namespace App\Observers\Game\Center;

use App\Caches\Game\AppSourceConfigCache;
use App\Models\Game\Center\AppSourceConfig;

class AppSourceConfigObserver
{
    /**
     * @param AppSourceConfig $model
     */
    public function created(AppSourceConfig $model)
    {
        AppSourceConfigCache::set($model);
    }

    /**
     * @param AppSourceConfig $model
     */
    public function updated(AppSourceConfig $model)
    {
        AppSourceConfigCache::set($model);
    }

    /**
     * @param AppSourceConfig $model
     */
    public function deleted(AppSourceConfig $model)
    {
        AppSourceConfigCache::del($model);
    }
}
